﻿using FreeSql.DataAnnotations;
using Jumei.Common.BaseModel;
using Jumei.Model.Business.MemberManage;
using Jumei.Model.Business.OrdersManage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jumei.Model.Business.GoodsManage
{
    /// <summary>
    /// 商品评价表
    /// </summary>
    [Table(Name = "gd_goods_appraises")]
    public class GoodsAppraisesEntity : EntityFull, ITenant
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        [Column(Position = -10)]
        public long? TenantId { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public long ShopId { get; set; }

        /// <summary>
        /// 订单ID
        /// </summary>
        public long OrderId { get; set; }

        public OrdersEntity Orders { get; set; }

        /// <summary>
        /// 评价对象ID
        /// </summary>
        public long GoodsId { get; set; }

        public GoodsEntity Goods { get; set; }

        /// <summary>
        /// 商品-规格Id
        /// </summary>
        public long GoodsSpecId { get; set; }

        /// <summary>
        /// 会员Id
        /// </summary>
        public long MemberId { get; set; }

        public MemberEntity Member { get; set; }

        /// <summary>
        /// 商品评分
        /// </summary>
        public decimal GoodsScore { get; set; }

        /// <summary>
        /// 服务评分
        /// </summary>
        public decimal ServiceScore { get; set; }

        /// <summary>
        /// 时效评分
        /// </summary>
        public decimal TimeScore { get; set; }

        /// <summary>
        /// 点评内容
        /// </summary>
        [Column(StringLength = -2)]
        public string Content { get; set; }

        /// <summary>
        /// 店铺回复
        /// </summary>
        [Column(StringLength = -2)]
        public string ShopReply { get; set; }

        /// <summary>
        /// 上传图片
        /// </summary>
        [Column(StringLength = -2)]
        public string Images { get; set; }

        /// <summary>
        /// 是否显示
        /// </summary>
        public bool IsShow { get; set; } = true;

        /// <summary>
        /// 商家回复时间
        /// </summary>
        public DateTime ReplyTime { get; set; }

        /// <summary>
        /// 订单上商品表自增ID	
        /// </summary>
        public long OrderGoodsId { get; set; }
    }
}
